#include "include.h"


u8 ota_run_manu(u8 *drv_ptr, u32 drv_len, u8 *load_ptr, u32 load_len);

u8 ota_get_flash_size(void){
    return FLASH_SIZE>>16;
}

void func_ota_manu(void)
{
    printf("func_ota_manu\n");
    set_sys_clk(SYS_24M);

    printf("ota_run\n");
    ota_run_manu((u8 *)RES_BUF_OTA_OTADRIVER_BIN,
                 RES_LEN_OTA_OTADRIVER_BIN,
                 (u8 *)RES_BUF_OTA_OTALOADER_BIN,
                 RES_LEN_OTA_OTALOADER_BIN);

    WDT_RST();
    while(1);
}
